import Layout from '@/layout/index.vue'

const inRouter = [{
  path: '/in',
  component: Layout,
  isShow: true,
  redirect: 'noRedirect',
  name: 'in',
  alwaysShow: true,
  meta: { title: '入库管理', icon: 'Sell', },
  children: [
    // {
    //   path: 'requirement',
    //   component: () => import('@/views/in/requirement/requirement.vue'),
    //   name: 'requirement',
    //   meta: { title: '材料清单', roles: ['admin'], icon: 'document' }
    // },
    // {
    //   path: 'request',
    //   component: () => import('@/views/in/request/request.vue'),
    //   name: 'request',
    //   meta: { title: '请购单', roles: ['admin'], icon: 'document' }
    // },
    {
      path: 'import',
      component: () => import('@/views/in/import/import.vue'),
      name: 'import',
      meta: { title: '入库单据', permissions: ['wms-order:import:'], icon: 'document' }
    },
    {
      path: 'returnIn',
      component: () => import('@/views/in/returnIn/returnIn.vue'),
      name: 'returnIn',
      meta: { title: '退货入库', permissions: ['wms-order:return-in:'], icon: 'document' }
    }
  ]
}]

export default inRouter
